package com.citycloud.ccuap.tc.sync.constant;

public enum MqType {

    /** ACTIVEMQ */
    ACTIVEMQ("jms"),

    /** KAFKA */
    KAFKA("kafka");

    private String value;

    private MqType(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static boolean contains(String type) {
        for (MqType typeEnum : MqType.values()) {
            if (typeEnum.getValue().equalsIgnoreCase(type.trim())) {
                return true;
            }
        }
        return false;
    }
}
